﻿using System;
using YiNing.UI.Forms;

namespace Xinken
{
    public partial class Setting : DarkForm
    {
        XinkenArgs xinkenArgs = new XinkenArgs();
        public Setting(XinkenArgs x)
        {
            InitializeComponent();
            xinkenArgs = x;
            propertyGrid1.SelectedObject = x;
            propertyGrid1.SelectedObjectsChanged += PropertyGrid1_SelectedObjectsChanged;
        }

        private void PropertyGrid1_SelectedObjectsChanged(object sender, EventArgs e)
        {
            xinkenArgs = sender as XinkenArgs;
        }

        private void dbtnSave_Click(object sender, EventArgs e)
        {
            xinkenArgs.SaveThis();
        }

    }
}
